package com.xijia.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.xijia.entity.UserEntity;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;


public interface UserMapper   extends BaseMapper<UserEntity>  {


    @Update("UPDATE user  SET name=#{name} WHERE  id =#{id}")
    Integer upd(@Param("id") String id, @Param("name") String name);


    @Update("DELETE FROM user WHERE id =#{id}")
    Integer del(@Param("id") String id);
}
